package com.proyecto.spv.client.presenter;

import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.event.shared.HandlerManager;

public class LoginPresenter implements Presenter{
	
	public interface Display{
		
		HasClickHandlers getLoginButton();
		Widget asWidget();
	}
	
	//private final SpvServiceAsync rpcService;
	private final HandlerManager eventBus;
	public final Display display;
	
	
	
	public LoginPresenter(HandlerManager eventBus, Display display) {
		this.eventBus = eventBus;
		this.display = display;
	}



	public void go(final HasWidgets container) {
	    //bind();
	    container.clear();
	    container.add(display.asWidget());
	    //fetchContactDetails();
	  }

}
